/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.base.entity.warehouse;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import org.hibernate.validator.constraints.Length;

/**
 * 仓库档案Entity
 * @author shengbin
 * @version 2021-03-02
 */
@Table(name="t_warehouse_charge_items", alias="a", columns={
		@Column(name="charge_items_id", attrName="chargeItemsId", label="费用项ID", isPK=true),
		@Column(name="charge_items", attrName="chargeItems", label="费用项"),
		@Column(name="specification", attrName="specification", label="规格"),
		@Column(name="currency_type", attrName="currencyType", label="币种 1"),
		@Column(name="unit_price", attrName="unitPrice", label="金额 1"),
		@Column(name="currency_type2", attrName="currencyType2", label="币种 2"),
		@Column(name="amount2", attrName="amount2", label="金额 2"),
		@Column(name="warehouse_id", attrName="warehouseId.warehouseId", label="仓库ID"),
	}, orderBy="a.charge_items_id ASC"
)
public class TwarehouseChargeItems extends DataEntity<TwarehouseChargeItems> {
	
	private static final long serialVersionUID = 1L;
	private String chargeItemsId;		// 费用项ID
	private String chargeItems;		// 费用项
	private String specification;		// 规格
	private String currencyType;		// 币种 1
	private Double unitPrice;		// 金额 1
	private String currencyType2;		// 币种 2
	private Double amount2;		// 金额 2
	private Twarehouse warehouseId;		// 仓库ID 父类
	
	public TwarehouseChargeItems() {
		this(null);
	}


	public TwarehouseChargeItems(Twarehouse warehouseId){
		this.warehouseId = warehouseId;
	}
	
	public String getChargeItemsId() {
		return chargeItemsId;
	}

	public void setChargeItemsId(String chargeItemsId) {
		this.chargeItemsId = chargeItemsId;
	}
	
	@Length(min=0, max=100, message="费用项长度不能超过 100 个字符")
	public String getChargeItems() {
		return chargeItems;
	}

	public void setChargeItems(String chargeItems) {
		this.chargeItems = chargeItems;
	}
	
	@Length(min=0, max=100, message="规格长度不能超过 100 个字符")
	public String getSpecification() {
		return specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification;
	}
	
	@Length(min=0, max=2, message="币种 1长度不能超过 2 个字符")
	public String getCurrencyType() {
		return currencyType;
	}

	public void setCurrencyType(String currencyType) {
		this.currencyType = currencyType;
	}
	
	public Double getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(Double unitPrice) {
		this.unitPrice = unitPrice;
	}
	
	@Length(min=0, max=2, message="币种 2长度不能超过 2 个字符")
	public String getCurrencyType2() {
		return currencyType2;
	}

	public void setCurrencyType2(String currencyType2) {
		this.currencyType2 = currencyType2;
	}
	
	public Double getAmount2() {
		return amount2;
	}

	public void setAmount2(Double amount2) {
		this.amount2 = amount2;
	}
	
	public Twarehouse getWarehouseId() {
		return warehouseId;
	}

	public void setWarehouseId(Twarehouse warehouseId) {
		this.warehouseId = warehouseId;
	}
	
}